```html
```
In this example, the CAPTCHA is generated from a predefined array of possible texts. You can customize the `captchaTexts` array with your own set of CAPTCHA texts. Whenever the page is loaded, a random CAPTCHA text is chosen and displayed to the user. The user then needs to enter the same text in the input field, and upon clicking the "Submit" button, the entered text is checked against the displayed CAPTCHA text. If the input matches, a success message is shown; otherwise, an error message is displayed, and the CAPTCHA is refreshed for another attempt.